package com.heu.blood.storge.exception;

import com.heu.blood.globalExceptionHandler.BaseErrorInfoInterface;

/**
 * @ClassName InstorageException
 * @Description 入库异常
 * @Author lyj
 * @Date 2025/3/10 22:42
 */
public enum InstorageException implements BaseErrorInfoInterface {
    DUPLICATE_BLOODID("1900","血液id同已入库血液重复"),
    NO_BLOODID("1901","入库数据中存在血液id为空的数据"),
    NO_BLOODID_STORAGE("1903","入库数据中不存在该血液id的数据"),
    STATE_WRONG_IN_STORAGE_TEST("1904","当前血液id不是入库待检状态"),
    NO_NEED_TEST("1905","当前血液不需检验");

    InstorageException(String resultCode,String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    // 错误码
    private final String resultCode;

    // 错误提示
    private final String resultMsg;
    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
